<div class="post_title">
	<h1 class="left">Highscores</h1>
	<div class="clearer">&nbsp;</div>
</div>
<div class="post_body">
	<h1>{capitalize($skillType)} highscores:</h1>
	Highscores for: <form action="?m=highscores" method="post">
		<select name="skill">
			<option value="experience">Experience</option>
			<option value="magiclevel">Magic Level</option>
			<option value="fist">Fist Fighting</option>
			<option value="club">Club Fighting</option>
			<option value="axe">Axe Fighting</option>
			<option value="sword">Sword Fighting</option>
			<option value="distance">Distance Fighting</option>
			<option value="fishing">Fishing</option>
			<option value="shield">Shielding</option>
		</select>
		<br />
		<input type="image" src="view/deadtouch/img/button_go.gif" />
	</form>
	<br />
	<table style="border: 1px black solid;">
	{if $skillType eq "experience"}
		<tr>
			<td class="p"></td>
			<td class="p"><strong>Name:</strong></td>
			<td class="p"><strong>Experience:</strong></td>
			<td class="p"><strong>Level:</strong></td>
		</tr>
	
	{@a is 0}
	{foreach table="$plist" index="i" value="player"}
		{if @player->group->access < $reqAccess}
		{@a is @a+1}
		<tr>
			<td class="p">{@a}.</a>
			<td class="p"><a href="?m=character&a=show&id={@player->id}">{@player->name}</a></td>
			<td class="p">{@player->experience}</td>
			<td class="p">{@player->level}</td>
		</tr>
		{/if}
	{/foreach}
	{/if}
	
	{if $skillType eq "fist"}
		<tr>
			<td class="p"></td>
			<td class="p"><strong>Name:</strong></td>
			<td class="p"><strong>Skill level:</strong></td>
		</tr>
	{@a is 0}
	{foreach table="$plist" index="i" value="player"}
		{if @player->group->access < $reqAccess}
		{@a is @a+1}	
		<tr>
			<td class="p">{@a}.</a>
			<td class="p"><a href="?m=character&a=show&id={@player->id}">{@player->name}</a></td>
			<td class="p">{@player->getSkill(0)}</td>
		</tr>
		{/if}
	{/foreach}
	{/if}
	{if $skillType eq "club"}
		<tr>
			<td class="p"></td>
			<td class="p"><strong>Name:</strong></td>
			<td class="p"><strong>Skill level:</strong></td>
		</tr>
	{@a is 0}
	{foreach table="$plist" index="i" value="player"}
		{if @player->group->access < $reqAccess}
		{@a is @a+1}	
		<tr>
			<td class="p">{@a}.</a>
			<td class="p"><a href="?m=character&a=show&id={@player->id}">{@player->name}</a></td>
			<td class="p">{@player->getSkill(1)}</td>
		</tr>
		{/if}
	{/foreach}
	{/if}
	{if $skillType eq "axe"}
		<tr>
			<td class="p"></td>
			<td class="p"><strong>Name:</strong></td>
			<td class="p"><strong>Skill level:</strong></td>
		</tr>
	{@a is 0}
	{foreach table="$plist" index="i" value="player"}
		{if @player->group->access < $reqAccess}
		{@a is @a+1}	
		<tr>
			<td class="p">{@a}.</a>
			<td class="p"><a href="?m=character&a=show&id={@player->id}">{@player->name}</a></td>
			<td class="p">{@player->getSkill(2)}</td>
		</tr>
		{/if}
	{/foreach}
	{/if}
	{if $skillType eq "sword"}
		<tr>
			<td class="p"></td>
			<td class="p"><strong>Name:</strong></td>
			<td class="p"><strong>Skill level:</strong></td>
		</tr>
	{@a is 0}
	{foreach table="$plist" index="i" value="player"}
		{if @player->group->access < $reqAccess}
		{@a is @a+1}	
		<tr>
			<td class="p">{@a}.</a>
			<td class="p"><a href="?m=character&a=show&id={@player->id}">{@player->name}</a></td>
			<td class="p">{@player->getSkill(3)}</td>
		</tr>
		{/if}
	{/foreach}
	{/if}
	{if $skillType eq "distance"}
		<tr>
			<td class="p"></td>
			<td class="p"><strong>Name:</strong></td>
			<td class="p"><strong>Skill level:</strong></td>
		</tr>
	{@a is 0}
	{foreach table="$plist" index="i" value="player"}
		{if @player->group->access < $reqAccess}
		{@a is @a+1}	
		<tr>
			<td class="p">{@a}.</a>
			<td class="p"><a href="?m=character&a=show&id={@player->id}">{@player->name}</a></td>
			<td class="p">{@player->getSkill(4)}</td>
		</tr>
		{/if}
	{/foreach}
	{/if}
	{if $skillType eq "shield"}
		<tr>
			<td class="p"></td>
			<td class="p"><strong>Name:</strong></td>
			<td class="p"><strong>Skill level:</strong></td>
		</tr>
	{@a is 0}
	{foreach table="$plist" index="i" value="player"}
		{if @player->group->access < $reqAccess}
		{@a is @a+1}	
		<tr>
			<td class="p">{@a}.</a>
			<td class="p"><a href="?m=character&a=show&id={@player->id}">{@player->name}</a></td>
			<td class="p">{@player->getSkill(5)}</td>
		</tr>
		{/if}
	{/foreach}
	{/if}
	{if $skillType eq "fishing"}
		<tr>
			<td class="p"></td>
			<td class="p"><strong>Name:</strong></td>
			<td class="p"><strong>Skill level:</strong></td>
		</tr>
	{@a is 0}
	{foreach table="$plist" index="i" value="player"}
		{if @player->group->access < $reqAccess}
		{@a is @a+1}	
		<tr>
			<td class="p">{@a}.</a>
			<td class="p"><a href="?m=character&a=show&id={@player->id}">{@player->name}</a></td>
			<td class="p">{@player->getSkill(6)}</td>
		</tr>
		{/if}
	{/foreach}
	{/if}
	</table>
</div>
	